package com.itheima.d5_method2;

/**
 * @author Dushaohua
 * @date 2024/4/15 17:09
 */
public class Student {
    String name;
    double math;
    double chinese;

    public double getScore(){
        double num = math + chinese;
        return num;
    }
    //不需要返回值
    public void getScore2(){
        double a = math + chinese;
        System.out.println(a);

    }
    //计算器除法计算
    public void divide(int x,int y){
        int result = x / y;
        System.out.println(x+" / "+y+" = "+result);
    }
}
